<?php if (hasPermission("namespaces.object.create.blog")): ?>
	<form action="<?php echo Gene::makeLink($object) ?>/new/blog" method="post">
	
	<fieldset>
	<legend>Create Blog</legend>
	
	<?php if ($draft): ?>
		<input type="hidden" name="draftid" value="<?php echo $draft['draft_id'] ?>" />
	<?php endif; ?>
	
	<p class="fieldlabel"><label for="blogname">Blog Name:</label></p>
	<p class="field"><input type="text" id="blogname" name="objtitle" size="32" class="required" value="<?php _e($title) ?>" /></p>
	
	<p class="fieldlabel"><label for="blogdesc">Blog Description: <em>(Optional)</em></label></p>
	<p class="fielddescription">In one or two sentences, describe what your blog is about.</p>
	<p class="field"><input type="text" id="blogdesc" name="objdesc" size="64" value="<?php _e($description) ?>" /></p>
	
	<p class="fieldlabel"><label for="formobjcontent">Introductory Message: <em>(Optional)</em></label></p>
	<p class="fielddescription">This message will be shown at the top of the front page of your blog.</p>
	<p class="field"><?php $this->display('objects/enhancedinput', array('rows' => 6)) ?></p>
	
	<p class="formcontrols"><input type="submit" value="Create Blog" class="btn_focus" /></p>
	
	</fieldset>
	
	</form>
<?php endif; ?>